package com.deke.order.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.deke.entity.EduCourse;
import com.deke.entity.EduTeacher;
import com.deke.entity.Order;
import com.deke.entity.TbMember;
import com.deke.order.dto.OrderDTO;
import com.deke.order.vo.OrderVo;
import com.deke.order.vo.PayOrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ：Username 刘亦辰（59372312@qq.com）
 * @date ：Created in 2022/12/9 12:11
 * @description：
 * @modified By：
 * @version:
 **/
public interface OrderDao extends BaseMapper<Order> {
    ////订单系统条件查询
    //public IPage<OrderDTO> queryAllByLimit(IPage<OrderDTO> page,OrderVo orderVo);

    //查询收入总额
    public  Double paySuccess();

    //订单查询 返回订单
    public PayOrderVo queryOrderAndPayLog(String id);

    //查询老师信息
    public EduTeacher queryAllTeacherBYTeacherName(String teacherName);

    //查询课程信息
    public List<EduCourse> queryAllCourse(String courseId);

    public TbMember queryAllMemberById(String memberId);

    //查询订单信息
    Order getOrderStatus(@Param("courseId") String courseId, @Param("memberId") String memberId);
}
